package com.shuimin.as.util;

import java.math.BigDecimal;

/**
 * Created by ed on 4/27/16.
 */
public class NumberFormat {
  public static Integer roundUpToInt(double d){

    BigDecimal b = new BigDecimal(d);
    return b.setScale(0, BigDecimal.ROUND_HALF_UP).intValue();
  }
}
